var ticTacToe = angular.module('ticTacToe', ['ngRoute','gameModule','playersModule']);
var httpUrl="http://localhost:8081";
ticTacToe.config(['$routeProvider', function($routeProvider) {
    $routeProvider.
        when('/about', {
            templateUrl: 'templates/about.html'
        }).
        when('/player/create', {
            templateUrl: 'templates/create.html',
            controller: 'PlayerCreateController'
        }).
        when('/gwtgame/:id', {
            templateUrl: 'templates/gwt/game_show.html',
            controller: 'gameController'
        }).
        when('/player/panel', {
            templateUrl: 'templates/gwt/game_new.html',
            controller: 'newGameController'
        }).
    when('/players/list', {
        templateUrl: 'templates/players/players_list.html',
        controller: 'playersController'
    }).

        otherwise({
            redirectTo: '/player/panel'
        });
}]);
